package com.zr.beijian.model;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class BeiJianVo {
    @Max(value=5,message = "最大值不能超过5")
    private int id;
    @NotBlank(message = "编码不能为空")
    private String code;
    @Size(min=2,max = 5,message = "2-5")
    private String name;
    @NotNull(message = "状态不能为空")
    private int state;
    @NotBlank(message = "描述不能为空")
    private String descripe;
}
